import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      // @ts-ignore
      component: () => import("@/pages/index.vue"),
    },
    {
      path: "/device",
      // @ts-ignore
      component: () => import("@/pages/device.vue"),
    },
    {
      path: "/task",
      // @ts-ignore
      component: () => import("@/pages/task.vue"),
    },
  ],
});

router.beforeEach(async () => {});

export default router;
